﻿using System.Security.Cryptography;
using System.Text;

namespace 加密算法
{
    public static class SHAHelper
    {
        public static string Encryption(string str)
        {
            return SHA512.Create().ComputeHash(Encoding.UTF8.GetBytes(str)).Aggregate("", (current, t) => current + t.ToString("X2"));
        }
    }
}
